package com.ruoyi.inventory.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Objects;

public class Library extends BaseEntity {
    /** 商品名称 */
    @Excel(name = "商品id")
    private String id;

    public String getId() {
        return id;
    }

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 入库时间 */
    @Excel(name = "入库时间")
    private String serviceTime;

    /** 到期时间 */
    @Excel(name = "到期时间")
    private String expirationTime;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(String serviceTime) {
        this.serviceTime = serviceTime;
    }

    public String getExpirationTime() {
        return expirationTime;
    }

    public void setExpirationTime(String expirationTime) {
        this.expirationTime = expirationTime;
    }

    public void setId(String id) {
        this.id = id;
    }

    /** 商品名称 */
    @Excel(name = "公司名称")
    private String nickName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    public int getNum() {
        return num;
    }

    @Override
    public String toString() {
        return "Library{" +
                "id='" + id + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", warehouseName='" + warehouseName + '\'' +
                ", serviceTime='" + serviceTime + '\'' +
                ", expirationTime='" + expirationTime + '\'' +
                ", nickName='" + nickName + '\'' +
                ", name='" + name + '\'' +
                ", sumNumber=" + sumNumber +
                ", num=" + num +
                ", specs='" + specs + '\'' +
                ", goodMax=" + goodMax +
                ", goodMin=" + goodMin +
                '}';
    }

    public void setNum(int num) {
        this.num = num;
    }

    /** 商品总名称 */
    @Excel(name = "商品总数量")
    private int sumNumber;

    /** 商品名称 */
    @Excel(name = "商品数量")
    private int num;

    /** 商品名称 */
    @Excel(name = "商品单位")
    private String specs;

    /** 商品名称 */
    @Excel(name = "商品最大数")
    private int goodMax;

    /** 商品名称 */
    @Excel(name = "商品最小数")
    private int goodMin;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSumNumber() {
        return sumNumber;
    }

    public void setSumNumber(int sumNumber) {
        this.sumNumber = sumNumber;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public int getGoodMax() {
        return goodMax;
    }

    public void setGoodMax(int goodMax) {
        this.goodMax = goodMax;
    }

    public int getGoodMin() {
        return goodMin;
    }

    public void setGoodMin(int goodMin) {
        this.goodMin = goodMin;
    }

    @Override
    public int hashCode() {
        return Objects.hash(nickName, name, sumNumber, specs, goodMax, goodMin);
    }

}
